<html><head>
<title>怎么就是FC不了，怎么又是那个熟悉的nice</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META http-equiv="Content-Script-Type" content="text/javascript">
<META http-equiv="Content-Style-Type" content="text/css">

<meta name="Robots" content="noindex,follow">
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
    var query = location.search.replace("?", "");
    var a = new Array();
    a = query.split("!");
    //QUERY = new Object();
    var QUERY = new Object();
    for (i=0; i<a.length; i++) {
    	var b = new Array();
		b = a[i].split('~')
		QUERY[b[0]] = unescape(b[1]);
	}

var door= QUERY['door'];
</script>

<script type="text/javascript" language="javascript">
$(document).ready(function() {
	//全域變數
	FFF=""+door;
	//
	if(typeof QUERY['arg0'] !== "undefined" ){
    //$("#ddd").append( '=>'+query+'<br/>' );
    $("#ddd").html("");
	poi();
	}
});
function poi() {
	var a = new Array();
	a = QUERY['arg0'].split(",");
	//
	img_id=[];
	img_e=[];
	//
	for (i=0; i<a.length; i++) {
		console.log(a[i]);
		//
		img_id[i]="id160913"+"_"+i;
		img_e[i] = document.createElement("img");// Create element
		img_e[i].setAttribute("id",img_id[i]);
		img_e[i].setAttribute("src",a[i]);
		//document.body.appendChild(img_e[i]);// Append <button> to <body>
		//document.getElementById("ddd").appendChild(img_e[i]);//
		document.getElementById("ddd").innerHTML+=img_e[i].outerHTML;
		
		img_e[i].addEventListener('load', function(){
			//console.log(img_id[i]+"ok");
    		console.log(this.id);
			//console.log(this);
			//img_e[i].parentNode.insertBefore("讀取完成", img_e[i].nextSibling);
			//var t = document.createTextNode("讀取完成");//t.outerHTML
			//img_e[i].insertAdjacentHTML("afterEnd","<span>讀取完成</span>");
			//img_e[i].parentNode.insertBefore("讀取完成", img_e[i].nextSibling);
			//var parentDiv = document.getElementById("ddd");
			var parentDiv = document.getElementById(this.id);
			var newElement = document.createElement("span");
			newElement.setAttribute("id","newElement_"+this.id);
			//parentDiv.insertBefore(newElement, img_e[i].nextSibling);
			parentDiv.insertAdjacentHTML('afterEnd', newElement.outerHTML);
			var dddce = document.getElementById("newElement_"+this.id);
			dddce.innerHTML="圖片載入完成";
		});
		//crt_e=null;	
		var crt_e = document.createElement("br");// Create element
		document.getElementById("ddd").innerHTML+=crt_e.outerHTML;
		//document.body.appendChild(crt_e);// Append <button> to <body>
		//document.getElementById("ddd").appendChild(img_e[i]);//
		//crt_e=null;
		//

	}
	//
	
}

</script>
</head>
<body>
<div id='ddd'>ddd</div>

</body></html>